package com.rc.object;

import com.rc.activity.dao.tbl_Category;

public class CategoryObj extends tbl_Category {

	public static String[] keys = { "CategoryID", "Name", "Parent", "Creator" };

	public static String CATEGORYID = keys[0];
	public static String NAME = keys[1];
	public static String PARENT = keys[2];
	public static String CREATOR = keys[3];

	public static tbl_Category getObjTripByBaseObject(BaseObject baseObj) {
		if (baseObj == null) {
			return null;
		}
		return new tbl_Category(baseObj.getParamLong(CATEGORYID),
				baseObj.getParam(NAME), baseObj.getParamInt(PARENT),
				baseObj.getParamInt(CREATOR));
	}

}
